<template>
    <div class="vuex_modules">
        vuex模块内容
        <p>{{textA}}</p>
    </div>
</template>

<script>
import{
    mapState
} from 'vuex'
export default {
    components: {},
    props: {},
    data () {
        return {
        }
    },
    watch: {},
    computed: {
        ...mapState({
            textA:(state) => state.a.text
        })
        // textA () {
        //     // state+模块名称
        //     return this.$store.state.b.text
        // }
    },
    methods: {},
    created () { },
    mounted () { }
}
</script>
<style lang="less" scoped>
</style>